package com.dan.infobeep;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class infobeep extends Activity implements OnClickListener{
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        Button add = (Button)findViewById(R.id.addnote);
        add.setOnClickListener(this);

        Button edit = (Button)findViewById(R.id.editnote);
        edit.setOnClickListener(this);
        
        Button options = (Button)findViewById(R.id.options);
        options.setOnClickListener(this);
    }
    
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.addnote :
			startActivity(new Intent(this, addnote.class));
			break;
		case R.id.editnote :
			startActivity(new Intent(this, editnote.class));
			break;
		case R.id.options :
			startActivity(new Intent(this, options.class));
			break;
		}
	}
}